package com.newly.common.base.entity.sys.tenant.dto;

import com.newly.common.base.entity.valid.Insert;
import com.newly.common.base.entity.valid.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author gjm guan
 * @date 2021/9/9 11:17
 * @desc 租户传输数据对象
 */
@ApiModel("租户传输数据对象")
@Data
public class TenantDto implements Serializable {
    /**
     * 用户id
     */
    @NotNull(message = "id can't be empty", groups = Update.class)
    @ApiModelProperty(value = "用户id")
    private Long id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @NotNull(message = "username can't be empty", groups = {Insert.class})
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @NotNull(message = "password can't be empty", groups = {Insert.class})
    private String password;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String nickname;

    /**
     * 微信号
     */
    @ApiModelProperty(value = "微信号")
    private String wechat;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证")
    private String idCard;


    /**
     * 用户类型，-1超级管理员，0管理员，1普通用户
     */
    @ApiModelProperty(value = "用户类型，-1超级管理员，0管理员，1普通用户")
    private Integer type;

    private long createBy;

    /**
     * 区域id
     */
    private Integer domainId;

    /**
     * 用户等级
     */
    @ApiModelProperty(value = "用户等级")
    private Integer level;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    private static final long serialVersionUID = 1L;
}
